home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
x11
/
rpg
/
crossfir.92
/
crossfir
/
crossfire-0.92.5
/
crossedit
/
Cnv
/
CnvMenu.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-24
|
593b
|
26 lines
#include <Cnv.h>
Widget CnvMenu(String name, Widget par,CnvMenuRec rec[], XtPointer p)
{
Widget shell, w;
int i;
shell = XtVaCreatePopupShell (name, simpleMenuWidgetClass, par,
NULL);
for (i = 0; *rec[i].label; i++) {
if (strncmp (rec[i].label, "---", 3)) {
w = XtVaCreateManagedWidget
(rec[i].label, smeBSBObjectClass, shell, NULL);
XtAddCallback (w, XtNcallback, rec[i].func, p);
XtInstallAccelerators(par, w);
} else
XtVaCreateManagedWidget ("line", smeLineObjectClass, shell, NULL);
}
return shell;
}
/*** end of CnvMenu.c ***/